#!/bin/bash
set -e

echo "Running cbindgen..."
mkdir -p gen

# Generate C header with cbindgen
cbindgen --config cbindgen.toml src/entry/user_auth_ffi.rs -vv --output gen/cbindgen_user_auth_ffi.h

echo "cbindgen generation completed successfully!"
echo "Generated header: gen/cbindgen_user_auth_ffi.h"
